FROM ubuntu:24.04

RUN mkdir /home/db

WORKDIR /home

ADD ./go-task /home/app
ADD ./db/task_db /home/db/task_db
ADD ./config.toml /home/config.toml

EXPOSE 9797
EXPOSE 9000

ENTRYPOINT ["sh", "-c", "./app"]